x86/VPMU: add privileged PMU mode
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 9 Jul 2015 14:52:31 +0000 (16:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Jul 2015 14:52:31 +0000 (16:52 +0200)
commit9f270faa5007271e49a93c9274d04e8119140145
tree85acbfef9ecbcacbb3d839ad43ff29df2bab4702
parent45bbd169745ccad0072bdc262b4e8bdfb4f038f6
x86/VPMU: add privileged PMU mode

Add support for privileged PMU mode (XENPMU_MODE_ALL) which allows privileged
domain (dom0) profile both itself (and the hypervisor) and the guests. While
this mode is on profiling in guests is disabled.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/vpmu.c
xen/arch/x86/traps.c
xen/include/public/pmu.h